<template>
  <div class="furn">
    <home-top />
    <item-header :dataList='secondary.data'/>
    <list :show="false" :list="listData" />
  </div>
</template>

<script>
import itemHeader from '../itemHeader';
import homeTop from "../homeTop";
import list from "../homeIndex/list.vue";
import furn from "@/mock/furniture.json";
import secondary from '@/mock/secondary.json'
export default {
  data() {
    return {
      listData: furn.data,
      secondary:secondary,
    };
  },
  components: { list, homeTop,itemHeader },
};
</script>

<style lang="less" scoped>
.zhanwei {
  height: 8.6rem;
}
.furn {
  .category-secondary {
    width: calc(100% - 2rem);
    height: 12rem;
    margin: 1rem 1rem;
    background-color: #fff;
    border-radius: 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    .item{
      flex: 1;
      text-align: center;
      img{
        width: 100%;
      }
      p{
        width: 100%;
      }
    }
  }
  .category-brand{
    border-radius: 1rem;
    background-color: #fff;
    width: calc(100% - 2rem);
    margin: 1rem 1rem;
    .tit{
      box-sizing: border-box;
      height: 5rem;
      width: 100%;
      padding: 2rem 2rem 1rem;
    }
    .cont{
      width: 100%;
      display: flex;
      flex-wrap: wrap;
      .item{
        width: 25%;
        text-align:center;
        margin-bottom: 1rem;
        img{
          width: 100%;
        }
      }
    }
  }
}
</style>